//
//  UIBarButtonItem+Extension.swift
//  WeiBoNew
//
//  Created by 秦川 on 16/5/11.
//  Copyright © 2016年 秦川. All rights reserved.
//

import UIKit
extension UIBarButtonItem {
    convenience init(title: String, fontSize: CGFloat,target: AnyObject?, action: Selector){
    self.init()
        let button = UIButton()
        button.setTitle(title, forState: .Normal)
        button.setTitleColor(UIColor.darkGrayColor(), forState: .Normal)
        button.setTitleColor(UIColor.orangeColor(), forState: .Highlighted)
        button.addTarget(target, action: action, forControlEvents: .TouchUpInside)
        button.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        button.sizeToFit()
        
    customView = button
    }
    
}






class UIBarButtonItem_Extension: UIBarButtonItem {

}
